<template>
    支付成功！！！
    <button @click="$router.push('/')">跳转首页</button>
</template>

<script setup>
import { onMounted } from 'vue';
import { useCounterStore } from '@/stores/counter'
import { useRoute } from 'vue-router'
const route = useRoute()
const store = useCounterStore()
onMounted(() => {
    // 修改当前支付成功的这个订单的状态
    store.updateOrderStatus(route.query.out_trade_no)
})
</script>